const express = require('express');
const router = express.Router();
const path = require('path');
const datum_mock_data = path.join(__dirname, '../public/json/datum_mock_data.json');

router.get('/', async (req, res) => {
    res.setHeader('Access-Control-Allow-Origin', '*');
    res.json(require(datum_mock_data));
});

module.exports = router;
